<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <!-- v-bind 绑定value -->
        <input type="text" :value="info" @input="inputChange">
        {{info}}
        <br>
        <!-- 相当于 -->
        <input type="text" v-model="info">
    </div>
    <script src="../../js/vue.js"></script>
    <script>
        const dcl = {
            data(){
                return {
                    info: 'hello world'
                }
            },
            methods: {
                inputChange(event){
                    this.info = event.target.value;
                }
            },
        };
        Vue.createApp(dcl).mount('#app');
    </script>
</body>
</html>